﻿namespace DDDDemo2;

public class AccountTransferDomainService : IAccountTransferDomainService
{
    public async Task TransferAsync(
        Account sourceAccount,
        Account targetAccount,
        decimal amount)
    {
        sourceAccount.TransferOut(amount);
        targetAccount.TransferIn(amount);
        await Task.CompletedTask;
    }
}
